package com.w.wx.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;

@Data
@ToString
public class CommentsInfo {
    private Integer inId;


    private Integer goodId;

    private String fromOpenid;

    private String fromName;

    private String fromAvatar;

    private Integer likeNum;

    private String content;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private ArrayList<CommentsReply> commentsReplies;

    private Integer userState;

    private Integer likeState;
    //子评论数量
    private Integer SonSums;
}